import 'package:get/get.dart';
import 'package:laos_mall/pages/accout/member_q_r_code/logic.dart';
import 'package:laos_mall/pages/accout/member_q_r_code/view.dart';
import 'package:laos_mall/pages/accout/setting/view.dart';
import 'package:laos_mall/pages/main/binding.dart';
import 'package:laos_mall/pages/main/catergory/product_detail/view.dart';
import 'package:laos_mall/pages/main/catergory/sku/view.dart';
import 'package:laos_mall/pages/main/home/view.dart';
import 'package:laos_mall/pages/main/shopping_cart/pay/view.dart';
import 'package:laos_mall/pages/main/shopping_cart/view.dart';
import 'package:laos_mall/pages/main/view.dart';

import 'pages/accout/login/binding.dart';
import 'pages/accout/login/view.dart';
import 'pages/main/shopping_cart/checkout/view.dart';

class AppRouter{
  static String login = "/login";
  static String main = "/";
  static String productDetail = "/product/product_detail";
  static String sku = "/sku";
  static String home = "/home";
  static String product = "/product";
  static String cart = "/cart";
  static String checkout = "/cart/checkout";
  static String pay = "/cart/checkout/pay";
  static String memberQrCode = "/user/memberQrcode";
  static String setting = "/user/setting";
  static List<GetPage> getPages = [
    GetPage(
      name: login,
      page: () =>  LoginPage(),
      binding: LoginBinding(),
      transition: Transition.downToUp,
    ),
    GetPage(name: main, page: ()=> MainPage(),binding: MainBinding()),
    GetPage(name: home, page:  ()=> HomePage()),
    GetPage(name: product, page:  ()=> HomePage()),
    GetPage(name: productDetail, page: ()=> ProductDetailPage()),
    GetPage(name: sku, page: ()=> SkuPage()),
    GetPage(name: cart, page: ()=> ShoppingCartPage()),
    GetPage(name: checkout, page: ()=> CheckoutPage()),
    GetPage(name: pay, page: ()=> PayPage()),
    GetPage(name: memberQrCode, page: ()=> MemberQRCodePage()),
    GetPage(name: setting, page: ()=> SettingPage()),
  ];
}